from MONITOR.app import *
print('Monitor Manager Tools v0.1')
def help():
    print("Monitor Manager Tools v0.1")
    print("-h -help    --  获取帮助")
    print("-update     --  强制更新")
    print("-showConfig --  列出当前配置")
def update():
    handle = Monitor()
    handle.job()
def showConfig():
    print(CONFIG)
    pass
stateMachine = {
    '-h':help,
    '-help': help,
    '-update': update,
    '-showConfig': showConfig
}
while True:
    command = input('>: ')
    try:
        stateMachine[command]()
    except Exception as e:
        print('未知命令{0},您是否输入正确?'.format(command))